|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectga.core.goperators.ProbabilityOp
ga.view.examples.simple.SimpleObjectMutationOp
public class SimpleObjectMutationOp
Mutation operator for the simple object example.
Constructor Summary | |
---|---|
SimpleObjectMutationOp(int pMutate)
Instantiates a new simple object mutation op. |
Method Summary | |
---|---|
SimpleObjectIndividual |
mutate(SimpleObjectIndividual individual,
GAContext context)
Performs a mutation (if probability met) of the given individual and returns the new individual. |
Methods inherited from class ga.core.goperators.ProbabilityOp |
---|
doOperate, doOperate, getRandom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleObjectMutationOp(int pMutate)
pMutate
- the mutateMethod Detail |
---|
public SimpleObjectIndividual mutate(SimpleObjectIndividual individual, GAContext context)
IMutationOp
mutate
in interface IMutationOp<SimpleObjectIndividual>
individual
- Individual to mutate.context
- The GA context.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |